home *** CD-ROM | disk | FTP | other *** search
XSetup plugin | 1999-08-09 | 1.6 KB | 62 lines |
- "FILE"="Xteq Systems X-Setup Plugin 5.0"
- "TYPE"="1"
- "COUNT"="2"
- "UIPATH"="Appearance\OEM Information"
- "NAME"="General Information"
- "VERSION"="1.41"
- "LANGUAGE"="VBScript"
- "TEXT 1"="OEM Name"
- "TEXT 2"="Computer Model"
- "DESCRIPTION 1"="To see these values, select "Start" | "Settings" | "Control Panel" and click "System"."
- "DESCRIPTION 2"="You can create your own computer ;-)."
- "AUTHOR"="Xteq Systems"
- "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
- "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
- "COMMENT 2"=" "
- "COMMENT 3"="Thanks to CptSiskoX [CptSiskoX@FlashMail.Com] for the Windows 9x part!"
-
-
- 'Declaration of some constants
- sT="General"
- sI="OEMINFO.INI"
-
- 'Win 9x -> \windows; Win NT -> \windows\system32
- If GetWinVer=2 then
- sI=GetWinSysDir & sI 'NT
- else
- sI=GetWinDir & sI '9x
- end if
-
-
- 'Called when the Plugin is started
- Sub Plugin_Initialize
- s=IniReadValue(si,st,"Manufacturer")
-
- 'Cheating OK... but how cares??!?!?!
- if IsEmpty(s) then
- SetUIElement 1,"Xteq Systems"
- else
- SetUIElement 1,s
- end if
-
- s=IniReadValue(si,st,"Model")
- SetUIElement 2,s
- End Sub
-
- 'Called when the Plugin should validate the Data the user has entered
- Sub Plugin_CheckData(ElementIndex)
- End Sub
-
- 'Called when the Plugin should apply the changes
- Sub Plugin_Apply(ElementIndex,ElementSubIndex)
- s=GetUIElement(1)
- Call IniWriteValue(si,st,"Manufacturer",s)
-
- s=GetUIElement(2)
- Call IniWriteValue(si,st,"Model",s)
- End Sub
-
- 'Called when the Plugin is about to be removed from memory
- Sub Plugin_Terminate
- End Sub
-